package com.tanhua.manager.exceptions;

import cn.hutool.crypto.SecureUtil;
import lombok.Getter;

@Getter
public enum TanhuaErrorEnums {


    USERNAME_PASSWORD_ISNULL(500,"用户名或者密码为空!"),
    CAPTCHA_ISNULL(500,"验证码为空!"),
    CAPTCHA_FAIL(500,"验证码校验失败"),
    USERNAME_ERROR(500,"用户名错误!"),
    PASSWORD_ERROR(500,"密码错误!")
    ;

//    状态码和错误提示

    private int code;
    private String message;
    TanhuaErrorEnums(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
